<?php
/**
 * Created by .
 * User: luogan
 * Date: 2022/1/17
 */

namespace app\admin\controller\v1;


class Base
{
    protected $service;

    protected $validate;

    public function __construct()
    {

    }

    /**
     * 校验参数
     * @param $sene 验证场景
     * @param bool $status 是否校验
     * @return array|mixed
     */
    public function checkParam($sene,$status=true)
    {
        $data =request()->param();
        if ($status){
            $data = $this->validate->goCheck($data,$sene);
        }
        return $data;
    }

}